$(window).ready(function(){
	$('#aDiv1').click(function(){
		$('#div1').attr('title',i18n.message.msg).dialog(dialogConfig);
	});
				
	$('#aDiv2').click(function(){
		$('#div2').attr('title',i18n.message.msg).dialog(dialogConfig);
	});
				
	$('#aDiv3').click(function(){
		$('#div3').attr('title',i18n.message.msg).dialog(dialogConfig);
	});	
		
	$('#aDiv4').click(function(){
		$('#div4').attr('title',i18n.message.msg).dialog(dialogConfig);
	});
	
	$('#aDiv5').click(function(){
		$('#div5').attr('title',i18n.message.msg).dialog(dialogConfig);
	});
				
	$('#aDiv6').click(function(){
		$('#div6').attr('title',i18n.message.msg).dialog(dialogConfig);
	});
				
	$('#btnGetPageWidth').click(function(){
		var width = $.getPageWidth();
		$.ui.dialog4Prompt(width);
	});
				
	$('#btnGetPageHeight').click(function(){
		var height = $.getPageHeight();
		$.ui.dialog4Prompt(height);
	});
				
	$('#btnGetJSONString').click(function(){
		var myDate = new Date();
		myDate.setFullYear(2012,3,13);
		var student = {studentNum:"001",studentName:"涛哥",birthday:myDate,address:"福建厦门",telphone:"1234556",email:"xxx@sina.com",gender:"true",idCard:"67467467467467",remark:"学生备注"};	
		var string = $.objToJSONString(student);
		$('#divFormObjJsonString').html(string);
	});
				
	$('#btnGetQueryString').click(function(){
		var field = $.getQueryString("studentName");
		$.ui.dialog4Prompt(field);
	});
				
	$('#btnHtmlDecode').click(function(){
		var htmlDecode = $('#editHtmlDecode').val();
		var decode = $.htmlDecode(htmlDecode);
		$.ui.dialog4Prompt(decode);
	});
				
	$('#btnHtmlEncode').click(function(){
		var htmlEncode = $('#editHtmlEncode').val();
		var encode = $.htmlEncode(htmlEncode);
		$.ui.dialog4Prompt(encode);
	});
});